package com.manning.readinglist;

import java.util.List;
import org.springframework.data.repository.CrudRepository;

//泛型中填写bean类和主键
//拓展Spring Data Jpa 的JpaRepository 接口
public interface ReadingListRepository extends CrudRepository<Book, Long> {

    List<Book> findByReader(String reader);

}